package com.kube.csv;

import java.util.ArrayList;
import java.util.List;

public class CSVDocument implements Document {
	List<Line> lines = new ArrayList<Line>();
	public void addLine(Line line) {
		lines.add(line);
	}

	public Line getLine(int index) {
		if (index > size()) throw new RuntimeException("Line not found");
		return lines.get(index);
	}

	public int size() {
		return lines.size();
	}

}
